﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:27
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
using OF.Component.DTO;

namespace OF.Component.BLL
{

    /// <summary>
    ///办事指南 扩展
    /// </summary>
    public partial class GuidanceOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个办事指南
    	/// </summary>
        public static GuidanceInfo QuerySingle(Expression<Func<GuidanceInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }

        /// <summary>
        /// 根据断言条件获获取办事指南列表
        /// </summary>
        public static IList<GuidanceInfo> QueryList(Expression<Func<GuidanceInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }


        /// <summary>
        /// 根据城市和业务获取办事指南
        /// </summary>
        /// <param name="citId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        public static GuidanceInfo GetGuidances(int citId, int bizTypeId)
        {
            return dal.GetGuidances(citId, bizTypeId);
        }

        /// <summary>
        /// 查询分页列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        public static IList<GuidanceDto> SearchList(GuidanceCondition condition)
        {
            return dal.SearchList(condition);
        }
    }
}